
$("#personalCenter").click(function () {
    $.ajax({
        url: url +"/userInfo/loginStatus",
        dataType:"json",
        type:"post",
        success:function (data) {
            console.log("登录拦截！")
            if(2 == data.code){
                layer.msg("请您登录!")
                setTimeout(function (){
                    location.href ="../../user/html/login.html"
                }, 1000)
                return 
            }
            location.href ="../../personalcenter/html/MyShunda.html"
        }
    })
})